package com.zb.designmode.decorate.example112;

import java.io.DataOutputStream;
import java.io.FileOutputStream;

/**
 * <p>文件描述：</p>
 * <p>版权所有： 版权所有(C)2016-2099</p>
 * <p>内容摘要： </p>
 * <p>其他说明： </p>
 * Date 2019-05-06</p>
 * Author Bing.Zhao1
 *
 * @version 1.0
 */
public class FileLogger implements ILogger {
    @Override
    public void log(String msg) {
        DataOutputStream dos = null;
        try {
            dos = new DataOutputStream(new FileOutputStream("/Users/zhaobing/myinfo/code/designmode/temp/log.txt"));
            dos.writeBytes(msg + "\r\n");
            dos.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
